//
// Created on 2025/1/23.
//
// Node APIs are not fully supported. To solve the compilation error of the interface cannot be found,
// please include "napi/native_api.h".

#ifndef UVCCAMERA_CAMERA_FACTORY_HELPER_H
#define UVCCAMERA_CAMERA_FACTORY_HELPER_H
#include "i_camera_factory.h"

class CameraFactoryHelper {
public:
    static ICameraFactory *openCamera(int fd, int busNum, int devAddress); // 打开设备
    static ICameraFactory *openCamera(char *videoPath);                    // 打开设备
    static bool close(int64_t cameraId);                           // 关闭设备

private:
    static char *loadVideoPath(int busNum, int devAddress); // 获取对应的设备的video地址
};
#endif // UVCCAMERA_CAMERA_FACTORY_HELPER_H
